package com.xqc.provider.facade.impl;

import com.xqc.provider.service.UserService;
import com.xqc.api.facade.UserFacade;
import com.xqc.api.response.UserResponse;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService(version = "${dubbo.application.version}")
public class UserFacadeImpl implements UserFacade {

    @Autowired
    private UserService userService;

    @Override
    public List<UserResponse> queryAll() {
        return this.queryAll();
    }

    @Override
    public boolean insert() {
        return this.userService.insert();
    }


}
